import { ActionTree } from 'vuex';

import * as types from './doc-types';

const actions: ActionTree<DocState, RootState> = {
  //显示
  show({ commit, state }, paylopy: { name: string }) {
    console.log(state.name);
    commit(types.SHOW, paylopy);
  },
};

export default actions;
